import javax.naming.InitialContext;
import javax.naming.NamingException;


import beans.PrimaAgainRemote;


public class Main {
	
public static void main(String[] args) {
		
		InitialContext ctx = null;
		PrimaAgainRemote bean= null;
		
		try{
			ctx = new InitialContext();
			bean = (PrimaAgainRemote) ctx.lookup("java:global/First_JMS_EAR_2/First_JMS_EJB/PrimaAgain!beans.PrimaAgainRemote");
		}
		catch (NamingException e)
		{
			e.printStackTrace();
		}
		
		bean.startTimer("primul");
	}

	/* (non-Java-doc)
	 * @see java.lang.Object#Object()
	 */
	public Main() {
		super();
	}

}